home *** CD-ROM | disk | FTP | other *** search
- ;
- page 60,132
- title Send a Form Feed to the Printer
- ;
- ; Author: Marty Prahl
- ; Date: 12-dec-84
- ; Rev: 1.0
- ;
- ; Copyright (c) 1984 by Marty Prahl
- ;
- ; Abstract:
- ;
- ; This routine provides for sending a standard form feed
- ; to the first printer port lpt1 via the standard dos printer
- ; output.
- ;
- ; Calling Sequence:
- ;
- ; A>PAGE
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Symbols
- ;
- ;---------------------------------------------------------------------------
- ;
- cseg segment para public 'CODE'
- assume cs:cseg, ds:cseg
-
- org 0100h
-
- include system.mac
-
- dos_functions
-
- page
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Local Data
- ;
- ;---------------------------------------------------------------------------
- ;
- ff equ 12 ; form feed
-
- page
- ;
- ;---------------------------------------------------------------------------
- ;
- ; Form Feed
- ;
- ;---------------------------------------------------------------------------
- ;
- form_feed:
- ;
- ; Send a single character to the printer
- ;
- mov dl,ff ; form feed
- mov ah,ptr_out ; standard printer output
- int dos ; dos interrupt
- ;
- ; Terminate through dos with no errorlevel set
- ;
- mov al,0 ; no error on return
- mov ah,exit_proc ; dos terminate
- int dos ; dos interrupt
-
- cseg ends
- end form_feed